package com.mycompany.inventory.pojo;

public class Unit {
	private String Id;
	private String name;

	public Unit(String id, String name) {
		this.setId(id);
		this.setName(name);
	}

	public Unit() {
		this.setId("");
		this.setName("");
	}
	
	public void clear(){
		this.setId("");
		this.setName("");
	}
	
	public void copyValue(Unit Obj){
		this.setId(Obj.getId());
		this.setName(Obj.getName());
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return Id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		Id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	public String toString(){
		return name;
	}
	
}
